package com.mdata.model.dto.wechat.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 获取部门成员
 *
 * 请求方式：GET（HTTPS）
 * 请求地址：https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=ACCESS_TOKEN&department_id=DEPARTMENT_ID&fetch_child=FETCH_CHILD
 *
 *        {
 *        "errcode": 0,
 *        "errmsg": "ok",
 *        "userlist": [
 *                {
 *                       "userid": "zhangsan",
 *                       "name": "张三",
 *                       "department": [1, 2],
 *                       "open_userid": "xxxxxx"
 *                }
 *          ]
 *     }
 *
 */
@Data
@ToString(callSuper = true)
public class SimpleListResult extends WeChatBaseResult {

    @JsonProperty(value = "userlist")
    List<UserList> userListList;
}
